package io.kubesphere.devops.core;

import io.kubesphere.devops.service.SimpleLogListener;

public class ListenerHolder {
    private static ListenerHolder instance;
    private SimpleLogListener simpleLogListener;

    public static synchronized ListenerHolder getInstance() {
        if (instance == null) {
            instance = new ListenerHolder();
        }
        return instance;
    }

    public SimpleLogListener getSimpleLogListener() {
        return simpleLogListener;
    }

    public ListenerHolder setSimpleLogListener(SimpleLogListener simpleLogListener) {
        this.simpleLogListener = simpleLogListener;
        return this;
    }
}
